-- aux.applescript
-- PrePress

--  Created by Ricardo Simão on 1/25/08.
--  Copyright 2008 __MyCompanyName__. All rights reserved.

on clicked theObject
	if name of theObject is "impressaoInterna" and state of theObject is 1 then
		set enabled of popup button "nomeMaqImpressaoInterna" of tab view item "Impressão" of tab view "criar" of window "Criar Obra" to true
	else if name of theObject is "impressaoInterna" and state of theObject is equal to 0 then
		set enabled of popup button "nomeMaqImpressaoInterna" of tab view item "Impressão" of tab view "criar" of window "Criar Obra" to false
	end if
	
end clicked

on awake from nib theObject
	(*Add your script here.*)
end awake from nib



